import React from 'react' 
 import ConditionsSearch from '../../component/Time/Time'//开始时间结束时间
// import './css/TimeDemo.css'  
class TimeDemo extends React.Component {
    constructor(props) {
        super(props)
        this.state = {}
    }  
    tableDatas = [ ] 
    info={   
        boxH:600,
        boxW:375, 
    }
    condition = { //搜索条件
        bTime : '',
        eTime : '',  
    } 
    componentWillMount = () => {   } 
    componentDidMount = () => {  }   
 
// 搜索事件 
    search = (param) => { 
        this.condition = Object.assign(this.condition,param);
        let par={ 
            start:this.condition.bTime ,
            end:this.condition.eTime 
        } ;  
    } 
  
    render() { 
       /** * 开始时间和结束时间的配置   */ 
        let topConfig = {
            width :   this.info.boxW,
            height : 100, 
            direction : 'top',
            speed : 2,
            state : false,
            bTime : this.condition.bTime,
            eTime : this.condition.eTime,
        } 
 
        return (
            <div className='TimeDemo'  > 
                <ConditionsSearch ref = 'condition'  theme ='default icon' config = {topConfig} search = {(data) => this.search(data)}  ></ConditionsSearch>
            </div> 
        )
    }
}

export default TimeDemo
